package com.jk.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author jisiqi
 * @version 1.0
 * @description: TODO   服务项目管理表
 * @date 2022/10/16 19:22
 */
@Data
@TableName(value = "service_project")
@Document(indexName = "pro")
public class ProBean {

    @Id
    @Field(value = "projectId",type = FieldType.Integer)
    @TableId(value = "project_id",type = IdType.AUTO)
    private   Integer  projectId;       //项目编号

    @TableField(value = "project_name")
    @Field(value = "projectName",type = FieldType.Text,analyzer = "ik_max_word")
    private   String   projectName;      //项目名称

    @TableField(value = "project_number")
    private   Integer  projectNumber;    //项目次数

    @TableField(value = "project_type")
    private   Integer  projectType;      //项目类型 1、付费项目 2、免费项目

    @TableField(value = "project_price")
    private   Double  projectPrice;        //项目原价

    @TableField(value = "project_introduce")
    private   String  projectIntroduce;     //项目介绍



}
